﻿using Microsoft.Lync.Model;
using System.Windows;

namespace WPFDemo
{
    public partial class Window1 : Window
    {
        #region "フォームロード

        public Window1()
        {
            InitializeComponent();

            if (LyncClient.GetClient().InSuppressedMode == true)
            {
                MessageBox.Show("Lync is configured for full UI suppression");
                return;
            }

        }
        #endregion

        #region "ボタンイベント"
        /// <summary>
        /// 連絡先追加/削除ボタンイベント 
        /// </summary>
        /// <param name="sender">object</param>
        /// <param name="e">RoutedEventArgs</param>
        private void AddContactButton_Click(object sender, RoutedEventArgs e)
        {
            addContactUri addContact = new addContactUri();
            addContact.ShowDialog();
        }

        /// <summary>
        /// カスタムグループ追加/削除ボタンイベント
        /// </summary>
        /// <param name="sender">object</param>
        /// <param name="e">RoutedEventArgs</param>
        private void AddCustomGroupButton_Click(object sender, RoutedEventArgs e)
        {
            addCustomGroup addGroup = new addCustomGroup();
            addGroup.ShowDialog();
        }

        /// <summary>
        /// カンバセーションボタンイベント 
        /// </summary>
        /// <param name="sender">object</param>
        /// <param name="e">RoutedEventArgs</param>
        private void Conversion_Click(object sender, RoutedEventArgs e) 
        {
            conversation conversation = new conversation();
            conversation.ShowDialog();
        }
        #endregion
    }
}
